import java.util.Arrays;
import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-03-22
 * Time:14:48
 */
public class TestDemo {
    public static void main(String[] args) {
        int nums[]=new int [10];
        double ave_num=0;
        for (int i = 0; i < 10; i++) {
            Random rand=new Random();
            nums[i]= rand.nextInt(10);
            ave_num+=nums[i];
        }
        System.out.println(Arrays.toString(nums));
        System.out.println("平均数："+(ave_num/nums.length));
    }
}
